package com.tiger.communal.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.tiger.common.annotation.Excel;
import com.tiger.common.core.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;


/**
 * 水电分对象 hydropower_submeter
 *
 * @author standard
 * @date 2022-10-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hydropower_submeter对象", description = "水电分表内容")
public class HydropowerSubmeter extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 总表id
     */
    @Excel(name = "总表id")
    @ApiModelProperty(value = "总表id")
    private Long hydropowerId;

    /**
     * 户号
     */
    @Excel(name = "户号")
    @ApiModelProperty(value = "户号")
    private String householdNum;

    /**
     * 水表/电表 编号
     */
    @Excel(name = "水表/电表 编号")
    @ApiModelProperty(value = "水表/电表 编号")
    private String hydropowerCode;

    /**
     * 资产id
     */
    @Excel(name = "资产id")
    @ApiModelProperty(value = "资产id")
    private Long assetId;

    /**
     * 资产名称
     */
    @Excel(name = "资产名称")
    @ApiModelProperty(value = "资产名称")
    private String assetName;

    /**
     * 电表/水表 单价
     */
    @Excel(name = "电表/水表 单价")
    @ApiModelProperty(value = "电表/水表 单价")
    private BigDecimal unitPrice;

    /**
     * 电表/水表类型  1-智能   2-普通
     */
    @Excel(name = "电表/水表类型  1-智能   2-普通")
    @ApiModelProperty(value = "电表/水表类型  1-智能   2-普通")
    private String hydropowerType;

    /**
     * 1-水分表  2-电分表
     */
    @Excel(name = " 1-水分表  2-电分表")
    @ApiModelProperty(value = " 1-水分表  2-电分表")
    private String type;

    /**
     * 初始读数
     */
    @Excel(name = "初始读数")
    @ApiModelProperty(value = "初始读数")
    private String initialNum;

    /**
     * 抄表日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抄表日", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "抄表日")
    private Date meterReadTime;

    /**
     * 抄表人id
     */
    @Excel(name = "抄表人id")
    @ApiModelProperty(value = "抄表人id")
    private Long meterReaderId;

    /**
     * 抄表人姓名
     */
    @Excel(name = "抄表人姓名")
    @ApiModelProperty(value = "抄表人姓名")
    private String meterReaderName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    @ApiModelProperty(value = "创建人")
    private Long createById;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    @ApiModelProperty(value = "创建人名称")
    private String createByName;

    /**
     * 更新人
     */
    @Excel(name = "更新人")
    @ApiModelProperty(value = "更新人")
    private Long updateById;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty(value = "更新人名称")
    private String updateByName;

    /**
     * 租户id(0--平台用户 非0--正常租户)
     */
    @Excel(name = "租户id(0--平台用户 非0--正常租户)")
    @ApiModelProperty(value = "租户id(0--平台用户 非0--正常租户)")
    private Long tenantId;

    @ApiModelProperty(value = "公司id")
    private Long companyId;

    @ApiModelProperty(value = "1-升序 2-降序")
    private Long rank;

    /**
     * 删除标志 1-是，0-否
     */
    @Excel(name = "删除标志 1-是，0-否")
    @ApiModelProperty(value = "删除标志 1-是，0-否")
    private Long isDeleted;


    @ApiModelProperty(value = "上次示数")
    private Float lastMonthDegree;

    @ApiModelProperty(value = "本次示数")
    private Float nowDegree;

    @ApiModelProperty(value = "上月用量")
    private Float lastMonthNum;

    @ApiModelProperty(value = "上月水费")
    private BigDecimal lastMonthPrice;

}
